package com.lwt.db137.commen;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author lwt
 * @version 1.0
 * @Description
 * @date 2024/12/13 14:59
 */

public class R {
    private int code=200;
    private String msgrr="success";
    private Map<String,Object> data=new HashMap<>();
    public  R addData(String key,Object value){
          this.data.put(key,value);
          return this;
    }

    public int getCode() {
        return code;
    }

    public R setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsgrr() {
        return msgrr;
    }

    public R setMsgrr(String msgrr) {
        this.msgrr = msgrr;
        return this;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }
}
